import { Cell, Edge, Graph } from "@antv/x6";

/**@description 通过边获取链接的节点*/
export function getSourceNodeByEdge(edge: Edge, graph: Graph): Cell {
  const id = (edge.source as any).cell;
  const sourceNode = graph.getCellById(id);
  return sourceNode;
}
